
	<!-- 
		轻论坛导航：默认头部
		Bootstrap 4.0 推荐的 PC/Mobile 公共写法 
		优点：公用性强
		缺点：结构稍微有点复杂
	-->
	
	<!--{hook header_nav_start.htm}-->
	<div>
		<!--{hook header_title_start.htm}-->
		<div class="container">
			<div class="row" style="height: 35px;background-color:#f5f5f5">
				<div class="col-6 flex-row d-flex">
					<span class="text-danger h5" style="line-height: 35px">
						<?php echo $u_city['city']; ?>
					</span>
					<a href="<?php echo url('index-city') ?>" style="line-height: 35px">
						[切换城市]
					</a>
				</div>
				<?php if(empty($uid)) { ?>
				<div class="col-6 flex-row-reverse d-flex">
					<a href="<?php echo url('user-create');?>" style="line-height: 35px">
						注册
					</a> 
					<span style="line-height: 35px" class="mx-1">
						|
					</span>
					<a href="<?php echo url('user-login'); ?>" style="line-height: 35px">
						<?php echo lang('login');?>
					</a>
					
				</div>
				<?php }else{ ?>
				<div class="col-6 flex-row-reverse d-flex">
					<a href="<?php echo url('user-logout');?>" style="line-height: 35px">
						退出登录
					</a>
					<span style="line-height: 35px" class="mx-1">
						|
					</span>
					<a href="<?php echo url('my');?>" style="line-height: 35px" class="text-danger">
						[会员管理中心]
					</a>
				</div>
				<?php } ?>
			</div>
		</div>
		<div class="d-none d-sm-block " style="background-color:#FFFFFF">
			<div class="container">
				<div style="height: 80px" class="row ">
					<div class="col-sm-6 d-flex" style="align-items:center">
						<img src="/view/img/Logo.jpg">
						<div class="ml-2" style="height: 50px; border-left: 1px solid #868e96;"></div>
						<span class="ml-2" style="line-height: 56px;font-size: 25px;">
							<?php echo str_replace('市','站',$u_city['city']); ?>
								
						</span>
					</div>
					<div class="col-sm-6 d-flex flex-row-reverse" style="align-items:center">
						<button type="button" class="btn btn-primary ml-3 d-sm-none d-md-block">自助建站</button>
						<a type="button" href="<?php echo url('thread-create-1-0') ?>" class="btn btn-success ml-3">发布信息</a>
						<div class="">
							<form action="<?php echo url('search');?>" id="search_form">
								<div class="input-group">
									<input type="text" class="form-control" placeholder="<?php echo lang('keyword');?>" name="keyword">
									<div class="input-group-append">
										<button class="btn btn-secondary" type="submit"><?php echo lang('search');?></button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
		<header class="navbar navbar-expand-lg navbar-light" style="background-color: #ff5400 !important;" id="header">
			<div class="container">
				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#nav" aria-controls="navbar_collapse" aria-expanded="false" aria-label="<?php echo lang('toggler_menu');?>">
					<span class="navbar-toggler-icon"></span>
				</button>
				
				<!--{hook header_nav_logo_before.htm}-->
				
				
				<!--{hook header_nav_logo_after.htm}-->
				
				<?php if(empty($uid)) { ?>
					<a class="navbar-brand hidden-lg" href="<?php echo url('user-login');?>" aria-label="<?php echo lang('login');?>"> <i class="icon-user icon"></i></a>
				<?php } else { ?>
					<a class="navbar-brand hidden-lg" href="<?php echo url("thread-create-$fid");?>" aria-label="<?php echo lang('thread_create');?>"><i class="icon-edit icon"></i></a>
				<?php } ?>
				
				<!--{hook header_nav_user_icon_after.htm}-->
				<style>

					a.nav-link:hover{
						color: #ff5400 !important;
						background: #ffffff;
					}

				</style>
				<div class="collapse navbar-collapse" id="nav">
					<!-- 左侧：版块 -->
					<ul class="navbar-nav mr-auto text-white col">
						<!--{hook header_nav_forum_start.htm}-->
						<li class="nav-item home d-inline-block text-truncate" fid="0" data-active="fid-0"><a class="nav-link text-white" href="."><i class="icon-home d-md-none"></i> <?php echo lang('index_page');?></a></li>
						<!--{hook header_nav_home_link_after.htm}-->
						<?php foreach($forumlist_show as $_forum) { ?>
						<!--{hook header_nav_forumlist_loop_start.htm}-->
						<li class="nav-item" fid="<?php echo $_forum['fid'];?>" data-active="fid-<?php echo $_forum['fid'];?>">
							<a class="nav-link text-white d-inline-block text-truncate" href="<?php echo url("forum-$_forum[fid]");?>"><i class="icon-circle-o d-md-none"></i> <?php echo $_forum['name'];?></a>
						</li>
						<!--{hook header_nav_forumlist_loop_end.htm}-->
						<?php } ?>
						<!--{hook header_nav_forum_end.htm}-->
					</ul>
					<ul class="navbar-nav mr-auto">
							<a href="<?php echo url('my-shop-list') ?>" class="nav-link text-white d-inline-block text-truncate">店铺</a>
					</ul>
					<ul class="navbar-nav mr-auto d-block d-sm-none">
						<a href="<?php echo url('my') ?>" class="nav-link text-white d-inline-block text-truncate">我的</a>
					</ul>
				</div>
			</div>
		</header>
	</div>
	<!--{hook header_nav_end.htm}-->